package com.xjh.basestudy.designmode.createMode.createMode4_AbstractFactory;

/**
 * @author XuJianHua
 * @date 2022-09-23 13:58:21
 * @description  怪兽中级兵种-毒液
 */
public class Poison extends MidClassUnit {

    public Poison(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("毒液兵出现在坐标：[" + x + "," + y + "]");
    }

    @Override
    public void attack() {
        System.out.println("毒液兵用毒液喷射，攻击力：" + attack);
    }

}